
package com.syh.niceweibo.common.infos;

import android.os.Parcel;
import android.os.Parcelable;

public class WeiboInfo implements Parcelable {
    public boolean isOnline = false;

    /**
     * About Weibo
     */
    public long weiboId;// weibo id
    public String content;
    public long created_at;
    /**
     * may be null
     */
    public String original_pic = null;
    public String bmiddle_pic = null;
    
    public int transmitCount;
    public WeiboInfo() {
    }
    public WeiboInfo(Parcel parcel) {
    	weiboId = parcel.readLong();
        content = parcel.readString();
        original_pic = parcel.readString();
        bmiddle_pic = parcel.readString();
        created_at = parcel.readLong();
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int flags) {
        parcel.writeLong(weiboId);
        parcel.writeString(content);
        parcel.writeString(original_pic);
        parcel.writeString(bmiddle_pic);
        parcel.writeLong(created_at);
    }

    /**
     * Parcelable.Creator that instantiates Notification objects
     */
    public static final Parcelable.Creator<WeiboInfo> CREATOR = new Parcelable.Creator<WeiboInfo>()
    {
        public WeiboInfo createFromParcel(Parcel parcel)
        {
            return new WeiboInfo(parcel);
        }

        public WeiboInfo[] newArray(int size)
        {
            return new WeiboInfo[size];
        }
    };
}
